<?php
/**
 * Copyright 2011  SURFfoundation
 * 
 * This file is part of ESCAPE.
 * 
 * ESCAPE is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * ESCAPE is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with ESCAPE.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information:
 * http://escapesurf.wordpress.com/
 * http://www.surffoundation.nl/
 * 
 * Contact: d.vierkant@utwente.nl
 * 
 * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3
 */
?><!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="/templates/default/style.css" type="text/css" />
<title><?php print htmlspecialchars($templateVariables['title']); ?></title>
<?php print $templateVariables['head_html']; ?>
</head>

<body>

<div id="wrap">

<table id="main">
<tr>
<td id="header" colspan="2">

<div id="toplinks">
<?php $this->displayLoginStatus(); ?>
</div>
<div id="pageTitle">ESCAPE<span class="fade"> demo</span></div>
<div id="pageSubTitle">Enhanced Scientific Communication by Aggregated Publication Environments</div>

</td>
</tr>

<tr>
<td id="sidebar">
<div class="heading">About</div>
<p>
Welcome to ESCAPE!
</p>

<div class="heading">Navigate</div>
<ul>
<li><a href="/">Home</a></li>
<li><a href="http://code.google.com/p/surf-escape/">ESCAPE source code</a></li>
<li><a href="http://escapesurf.wordpress.com/">ESCAPE blog</a></li>
</ul>
</td>
<td id="content">
<?php
		$breadCrumbs = $this->getBreadCrumbs();
		if(count($breadCrumbs) > 0)
		{
?>
<div class="escape_Breadcrumbs">
Trace: 
<?php
			foreach($breadCrumbs as $idx => $breadCrumb)
			{
				if($idx > 0)
				{
					print ' &raquo; ';
				}
				
				$title = $breadCrumb->getTitle();
				$titleLength = mb_strlen($title);
				if($titleLength > $this->repository->config['breadcrumbs_title_length'])
				{
					$title = mb_substr($title, 0, $this->repository->config['breadcrumbs_title_length'] - 3) . '...';
				}
?>
<a href="<?php print htmlspecialchars($breadCrumb->getUrl()); ?>" title="<?php print htmlspecialchars($breadCrumb->getTitle()); ?>"><?php print htmlspecialchars($title); ?></a>
<?php
			}
?>
</div>
<?php
		}
?>